Learn R Programming

CVXR (version 0.99-7)

[,Expression,missing,missing,ANY-method: The Index class.

Description

This class represents indexing or slicing into a matrix.

Usage

# S4 method for Expression,missing,missing,ANY
[(x, i, j, ..., drop = TRUE)

# S4 method for Expression,index,missing,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for Expression,missing,index,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for Expression,index,index,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for Expression,matrix,index,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for Expression,index,matrix,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for Expression,matrix,matrix,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for Expression,matrix,missing,ANY [(x, i, j, ..., drop = TRUE)

Index(expr, key)

# S4 method for Index to_numeric(object, values)

# S4 method for Index size_from_args(object)

# S4 method for Index get_data(object)

# S4 method for Index graph_implementation(object, arg_objs, size, data = NA_real_)

Arguments

x, object

An '>Index object.

i, j

The row and column indices of the slice.

...

(Unimplemented) Optional arguments.

drop

(Unimplemented) A logical value indicating whether the result should be coerced to the lowest possible dimension.

expr

An '>Expression representing a vector or matrix.

key

A list containing the start index, end index, and step size of the slice.

values

A list of arguments to the atom.

arg_objs

A list of linear expressions for each argument.

size

A vector with two elements representing the size of the resulting expression.

data

A list of additional data required by the atom.

Methods (by generic)

  • to_numeric: The index/slice into the given value.

  • size_from_args: The size of the atom.

  • get_data: A list containing key.

  • graph_implementation: The graph implementation of the atom.

Slots

expr

An '>Expression representing a vector or matrix.

key

A list containing the start index, end index, and step size of the slice.